package bean;

import java.util.Comparator;

/**
 * Created by hadoop on 17-6-21.
 * 实现java.util.Comparator接口
 * 用于S:sort标签
 */
public class MyComparator implements Comparator{
    @Override
    public int compare(Object o1, Object o2) {
        return o2.toString().length()-o1.toString().length();
    }
}
